//
// Created by xqyr on 2025/4/11.
//

#ifndef FCLIENT_BEEP_H
#define FCLIENT_BEEP_H

#include "chardevapp.h"

class Beep: protected CharDeviceAPP{
public:
    enum{
        BEEP_ON = 0,
        BEEP_OFF =1
    };
    Beep(std::function<void(const bool)> fun = nullptr);
    void setBeep(bool flag);
    bool getBeep() ;
public:
     void devChangeCallback(const bool);

     void set_beepStatusChangeCallback(std::function<void(const bool)> fun);
    std::function<void(const bool)> beepStatusChangeCallback = nullptr;
private:
    bool beepStatus = BEEP_OFF;
};


#endif //FCLIENT_BEEP_H
